package OptionalPic;

/**
 * @projectName: Java8
 * @package: OptionalPic
 * @className: Boy
 * @author: 冷环渊 doomwatcher
 * @description: TODO
 * @date: 2021/12/13 0:33
 * @version: 1.0
 */
public class Boy {
    private Girl girl;

    @Override
    public String toString() {
        return "Boy{" +
                "girl=" + girl +
                '}';
    }

    public Girl getGirl() {
        return girl;
    }

    public void setGirl(Girl girl) {
        this.girl = girl;
    }

    public Boy() {
    }

    public Boy(Girl girl) {
        this.girl = girl;
    }
}
